/*
 * @Author: taoyuqing
 * @Date: 2023-01-10 02:35:27
 * @Description: 
 */
import 'package:flutter/material.dart';
import 'package:spree/widgets/common_container.dart';

import '../../utils/utils.dart';

class Crash extends StatefulWidget {
  Crash({Key? key}) : super(key: key);

  @override
  State<Crash> createState() => _CrashState();
}

class _CrashState extends State<Crash> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Crash'),
      ),
      body: Container(
        child: ListView(
          children: [
            Stack(
              children: [
                Container(
                    width: Utils().getScreenWidth(context),
                    height: 300,
                    decoration: BoxDecoration(
                        color: Utils().createMaterialColor(),
                        image: const DecorationImage(
                            image: AssetImage(
                              'images/games/crash/background.png',
                            ),
                            fit: BoxFit.fill))),
                Positioned(
                    left: 0,
                    bottom: 0,
                    child: Stack(
                      children: [
                        Image.asset(
                          'images/games/crash/fire.gif',
                          width: 100,
                        ),
                        Positioned(
                            left: 0,
                            bottom: 0,
                            child: Image.asset('images/games/crash/fire.gif'))
                      ],
                    ))
              ],
            )
          ],
        ),
      ),
    );
  }
}
